package untity.screen;

public class HouseType {
    private int hall;
    private int room;
    private int washroom;
    private int kitchne;
    private int balcony;
    private String housetype;

    public int getHall() {
        return hall;
    }

    public void setHall(int hall) {
        this.hall = hall;
    }

    public int getRoom() {
        return room;
    }

    public void setRoom(int room) {
        this.room = room;
    }

    public int getWashroom() {
        return washroom;
    }

    public void setWashroom(int washroom) {
        this.washroom = washroom;
    }

    public int getKitchne() {
        return kitchne;
    }

    public void setKitchne(int kitchne) {
        this.kitchne = kitchne;
    }

    public int getBalcony() {
        return balcony;
    }

    public void setBalcony(int balcony) {
        this.balcony = balcony;
        this.setHousetype();
    }

    public String getHousetype() {
        return housetype;
    }

    public void setHousetype() {
        this.housetype = hall+"厅"+room+"室"+washroom+"卫"+kitchne+"厨"+balcony+"阳台";
    }

    @Override
    public String toString() {
        return "HouseType{" +
                "hall=" + hall +
                ", room=" + room +
                ", washroom=" + washroom +
                ", kitchne=" + kitchne +
                ", balcony=" + balcony +
                ", housetype='" + housetype + '\'' +
                '}';
    }
}
